<!doctype html>
<html>
<?php echo $this->fetch('head.html'); ?>

<body>
 <div class="header" > <a  class="left-btn pointer" href="<?php echo $this->_var['appkucun']; ?>"><span class="iconfont icon-back"></span></a>
  <div class="title">进货订单</div>
  <div class="right-btn" id="showSearch"><span class="iconfont icon-search"></span></div>
</div>
<div class="row">
 <div class="tabs-border i5"> 
  	 
      <a href="<?php echo $this->_var['appkucun']; ?>?m=kcorder&status=0" class="item <?php if (get ( 'status' ) == 0): ?>active<?php endif; ?>">未确认</a> 
      <a href="<?php echo $this->_var['appkucun']; ?>?m=kcorder&status=1" class="item <?php if (get ( 'status' ) == 1): ?>active<?php endif; ?>">待发货</a> 
      <a href="<?php echo $this->_var['appkucun']; ?>?m=kcorder&status=2" class="item <?php if (get ( 'status' ) == 2): ?>active<?php endif; ?>">待完成</a> 
      <a href="<?php echo $this->_var['appkucun']; ?>?m=kcorder&status=3" class="item <?php if (get ( 'status' ) == 3): ?>active<?php endif; ?>">已完成</a> 
      <a href="<?php echo $this->_var['appkucun']; ?>?m=kcorder&status=10" class="item <?php if (get ( 'status' ) == 10): ?>active<?php endif; ?>">已取消</a> 
  </div>
</div>
<div class="row">
<form method="get" action="<?php echo $this->_var['appkucun']; ?>">
  <input type="hidden" name="m" value="kcorder" />
  <input type="hidden" name="a" value="default" />
  <div class="pd-5" id="searchBox" style="display:none">
    <div class="input-row">
      <label >订单号</label>
      <input type="text" name="orderno" value="<?php echo $_GET['orderno']; ?>" />
    </div>
    <div class="input-row">
      <label>用户</label>
      <input type="text" name="nickname" value="<?php echo $_GET['nickname']; ?>" />
    </div>
    <div class="input-row">
      <select name="s_status" class="txt">
        <option value="-1">请选择状态</option>
        
<?php $_from = $this->_var['order_status_list']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('k', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['k'] => $this->_var['c']):
?>
<?php if ($this->_var['k'] < 99): ?>
        <option value="<?php echo $this->_var['k']; ?>" <?php if ($_GET['s_status'] == $this->_var['k']): ?> selected="selected" <?php endif; ?>><?php echo $this->_var['c']; ?></option>
        <?php endif; ?>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>

      </select>
    </div>
    <div class="form-btns">
      <button type="submit"   class="btn btn-warning btn-row" />
      搜索
      </button>
    </div>
  </div>
</form>
 
<?php $_from = $this->_var['sitedata']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 's');if (count($_from)):
    foreach ($_from AS $this->_var['s']):
?>
	<div class="kdhd"><?php echo $this->_var['s']['site']['sitename']; ?></div>
    <?php $_from = $this->_var['s']['orders']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
    <table class="kdtable">
    <tbody><tr onclick="window.location='<?php echo $this->_var['appkucun']; ?>?m=kcorder&a=show&order_id=<?php echo $this->_var['c']['order_id']; ?>'">
      
      <td class="km">
      	<div class="pd">
      <div class="hd"> 
      	<span class="left"><?php echo $this->_var['c']['address']; ?></span> 
      	<span class="right">订单号:<?php echo $this->_var['c']['orderno']; ?></span> 
      </div>
        <div class="address"><span class="left">共<span class="cor1"><?php echo $this->_var['c']['num']; ?></span>件 合计￥<span class="cor1"><?php echo $this->_var['c']['gys_money']; ?></span></span> <span class="right f16"><?php echo $this->_var['c']['shop_name']; ?></span> </div>
        <div class="dateline"><?php echo date("Y-m-d H:i:s",$this->_var['c']['dateline']); ?></div>
         
       
        </div></td>
      <td class="kr">&gt;</td>
    </tr>
  </tbody></table>
   
   
  <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  </div>
  <?php echo $this->_var['pagelist']; ?> 
<script language="javascript" src="/plugin/My97DatePicker/WdatePicker.js"></script> 
<script>
$(function(){
	
	$("#showSearch").on(CLICK,function(){
		$("#searchBox").toggle();
	});
	
})
</script> 
<?php $this->assign('botnav','kcorder'); ?>
<?php echo $this->fetch('footer.html'); ?>
</body>
</html>